import { NodeRoot } from "../Base/NodeRoot";
import { NMNode } from "../Base/NodeGraph";
@NMNode
export class FindNode extends NodeRoot{
    public Node:any;
    public FindNodePath:string;
    private setNode:cc.Node;
    onEnter(){
        this.setNode=cc.find(this.FindNodePath);
        if(!this.setNode){
            this.setNode=this.ownerNode;
        }
        this.Node=this.setNode;
    }
}